﻿@model Models.ContentList

@{
    Layout = "~/Views/Shared/_Movie.cshtml";
}

@foreach (var item in Model.List)
{
    <div class="postlist" id="post-@item.Seed">
        <h4>
            <a target="_blank" href="/view/@Html.Raw(item.Seed/1000)@Html.Raw("/")@Html.DisplayFor(modelItem => item.Seed)@Html.Raw(".html")" rel="bookmark" title='《@Html.DisplayFor(modelItem => item.Name)》高清迅雷下载'>《@Html.DisplayFor(modelItem => item.Name)》高清迅雷下载</a>
            <span style="color:#CC0000;">[@Html.DisplayFor(modelItem => item.State)]</span><span>
                <a target="_blank" href="/view/@Html.Raw(item.Seed/1000)@Html.Raw("/")@Html.DisplayFor(modelItem => item.Seed)@Html.Raw(".html")">阅读全文»</a>
            </span>
        </h4><div class="postcontent">@Html.Raw(item.Intro.ToString())@Html.Raw("...")</div><div class="postmeat al">
            日期：@item.UpdateTime.ToString("yyyy年MM月dd日")  |
            <a target="_blank" href="/view/@Html.Raw(item.Seed/1000)@Html.Raw("/")@Html.DisplayFor(modelItem => item.Seed)@Html.Raw(".html#comments")" title="欢迎您发表影评"><font color="#cc0000">发表影评</font></a>
        </div>
    </div>

}
<nav class="navigation pagination" role="navigation">
    <h2 class="screen-reader-text">文章导航</h2>
    <div class="nav-links">
        @if (Model.Page.Index > 3)
        {
            <a>...</a>
        }
        @for (int i = Model.Page.Index - 2; i < Model.Page.Index; i++)
        {
            if (i < 1)
            {
                continue;
            }
            <a class="next page-numbers" href="/tag/@ViewBag.Key@Html.Raw(",")@i/">@i</a>
        }

        <a class="next page-numbers" style="background-color:rgb(204, 0, 0)">@Model.Page.Index</a>

        @for (int i = Model.Page.Index + 1; i < Model.Page.Index + 3; i++)
        {
            if ((Model.Page.Page - i) < 0)
            {
                continue;
            }
            <a class="next page-numbers" href="/tag/@ViewBag.Key@Html.Raw(",")@i/">@i</a>
        }

        @if ((Model.Page.Page - Model.Page.Index) > 2)
        {
            <a>...</a>
        }
        <a>共 @Model.Page.Page 页</a>
    </div>
</nav>